<?php
(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
/*
	[天生创想] (C)2008-2011 515158 Inc.
	This is NOT a freeware, use is subject to license terms
    URL:http://www.515158.com/
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
//定义标题
if ($_GET[type]=='1'){
$news_title='新闻';
////
if($_GET[muid]=='3'){
$nums=26;
}else{
$nums=69;
}
////
}elseif($_GET[type]=='3'){
$news_title='公告';
//$nums=27;
if($_GET[muid]=='3'){
$nums=27;
}else{
$nums=71;
}
}elseif($_GET[type]=='4'){
$news_title='通知';
//$nums=28;
if($_GET[muid]=='3'){
$nums=28;
}else{
$nums=70;
}
}elseif($_GET[type]=='5'){
$news_title='大事记';
//$nums=29;
if($_GET[muid]=='3'){
$nums=29;
}else{
$nums=68;
}
}elseif($_GET[type]=='6'){
$news_title='电子期刊';
//$nums=30;
if($_GET[muid]=='3'){
$nums=30;
}else{
$nums=67;
}
}else{
}
//====================

global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='".$_GET[muid]."' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<form name="save" method="post" >

<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center"><?=$knowledge['subject']?></td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
    <tr>
      <td class="TableData" style="padding-left:20px;">
      <a class="detail" href="<?php if($knowledge['uid']==$_USER->id){?>admin.php?ac=edit&fileurl=news&muid=<?=$_GET[muid]?>&do=edit&type=<?=$_GET[type]?>&id=<?=$knowledge['id']?><?php }else{echo "#"; } ?>">
                                
                                编辑
                            </a> | 
                            <a onClick="deleteDaily();" class="detail" href="<?php if($knowledge['uid']==$_USER->id){?>admin.php?ac=index&fileurl=news&type=<?=$_GET[type]?>&muid=<?=$_GET[muid]?>&do=htcdelete&id=<?=$knowledge['id']?><?php }else{echo "#"; } ?>">
                                
                                删除
                            </a>  &nbsp;&nbsp;&nbsp;&nbsp;发布时间: <?=$knowledge['date']?>
							&nbsp;&nbsp;&nbsp;&nbsp;<?php if($knowledge['appendix']!=''){?> 附件下载：<a class="detail" href="<?=$knowledge['appendix']?>"><?=$knowledge['appendix']?></a>
                        <?php }?></td>
    </tr>


 <tr>
      <td class="TableData" style="padding:20px 20px 20px 20px;">
     <?=$knowledge['content']?>	</td>
    </tr>

  </table>
</form>
</div>
</div>
 
<script language="javascript" src="javascripts01/tangram-1.3.1.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/elf.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/union.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/codeMgr.js" type="text/javascript"></script>
 
</body>
</html>
